{#

 This file is part of the FOSCommentBundle package.

 (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>

 This source file is subject to the MIT license that is bundled
 with this source code in the file LICENSE.

#}

{% block fos_comment_comment_form_holder %}
    <div class="message-form fos_comment_comment_form_holder" style="margin-top:8px;">
        {% block fos_comment_form_title %}
            {% if first %}
                <h5>{% trans from 'FOSCommentBundle' %}fos_comment_comment_new_headline_first{% endtrans %}</h5>
            {% elseif parent is not null %}
                <h5>{% trans with {"%name%": parent.authorName } from 'FOSCommentBundle' %}fos_comment_comment_reply_reply_to{% endtrans %}</h5>
            {% else %}
                <h5>{% trans from 'FOSCommentBundle' %}fos_comment_comment_new_headline{% endtrans %}</h5>
            {% endif %}
        {% endblock %}


        {% block fos_comment_comment_new_form %}
        <div class="row-fluid">
            <form class="fos_comment_comment_new_form" action="{{ url('fos_comment_post_thread_comments', url_parameters) }}" data-parent="{{ parent.id|default() }}" method="POST">

            	<div class="span10">
                {% block fos_comment_form_fields %}
                    <div class="fos_comment_form_errors">
                    {{ form_errors(form) }}
                    </div>
                    <div class="fos_comment_form_errors">
                    {{ form_errors(form.body) }}
                    </div>
                    {{ form_widget(form.body, {'attr': {'class':'span12'}}) }}

                    {{ form_rest(form) }}
                {% endblock %}
				</div>
                <div class="span2 fos_comment_submit">
                    {% block fos_comment_form_submit %}
                        {% if parent is not null %}
                            <p><input type="button" value="{% trans from 'FOSCommentBundle' %}fos_comment_comment_reply_cancel{% endtrans %}" class="btn fos_comment_comment_reply_cancel" /></p>
                        {% endif %}
                        <input type="submit" value="{% trans from 'FOSCommentBundle' %}fos_comment_comment_new_submit{% endtrans %}" class="btn btn-primary" />
                    {% endblock %}
                </div>

            </form>
        </div>
        {% endblock fos_comment_comment_new_form %}

    </div>
{% endblock fos_comment_comment_form_holder %}
